﻿namespace Charades.Web.Hubs
{
	using System.Threading.Tasks;

	public class DefaultHub : BaseHub
	{
		#region Connection Methods

		public override Task OnConnected()
		{
			Game.ConnectionManager.OnConnected(Context.ConnectionId);
			return base.OnConnected();
		}

		public override Task OnReconnected()
		{
			Game.ConnectionManager.OnReconnected(Context.ConnectionId);
			return base.OnReconnected();
		}

		public override Task OnDisconnected()
		{
			Game.OnDisconnected(Context.ConnectionId);
			return base.OnDisconnected();
		}

		#endregion
	}
}